package com.cplatform.cat.java8;

public class WeightApple implements Applepredicate {
    @Override
    public String test(Apple apple) {
        if(apple.getWeight()>150){
            return "重的";
        }
        return "轻的";
    }
}
